﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>我的公告列表</title>
    <link href="../../WF/Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <script src="../../WF/Scripts/bootstrap/js/jquery.min.js" type="text/javascript"></script>
    <script src="../../WF/Scripts/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!--富文本编辑器-->
    <link href="bootstrap-wysiwyg-master/external/google-code-prettify/prettify.css"
        rel="stylesheet" type="text/css" />
    <link href="bootstrap-wysiwyg-master/external/bootstrap-combined.min.css" rel="stylesheet"
        type="text/css" />
    <link href="Font-Awesome-3.0.2/css/font-awesome.css" rel="stylesheet" type="text/css" />
    <script src="bootstrap-wysiwyg-master/external/jquery.hotkeys.js" type="text/javascript"></script>
    <script src="bootstrap-wysiwyg-master/external/google-code-prettify/prettify.js"
        type="text/javascript"></script>
    <script src="bootstrap-wysiwyg-master/bootstrap-wysiwyg.js" type="text/javascript"></script>
    <link href="bootstrap-wysiwyg-master/index.css" rel="stylesheet" type="text/css" />
    <!--选中效果-->
    <!-- 引用通用的js文件. -->
    <script type="text/javascript" src="../../WF/Scripts/config.js"></script>
    <script src="../../WF/Comm/Gener.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(function () {


            $("#Msg").html("正在加载请稍后...");

            var ens = new Entities("BP.OA.Notices");
            var data = ens.DoMethodReturnJSON("GenerMyNotices");
            // alert(data);

            var html = "<table style='width:100%;'>";

            html += "<tr>";
            html += "<th>序</th>";
            html += "<th>标题</th>";
            html += "<th>发布部门</th>";
            html += "<th>发布人</th>";
            html += "<th>发布日期</th>";
            html += "</tr>";

            for (var i = 0; i < data.length; i++) {

                var en = data[i];

                html += "<tr>";
                html += "<td>" + (i + 1) + "</td>";
                html += "<td><a href='View.htm?OID=" + en.OID + "' target=_blank>" + en.Title + "</a></td>";
                html += "<td>" + en.FK_DeptText + "</td>";
                html += "<td>" + en.RecText + "</td>";
                html += "<td>" + en.RDT + "</td>";
                html += "</tr>";
            }

            html += "</table>";


            $("#Msg").html(html);

        });

    </script>
</head>
<body>
    <div id="Msg">
    </div>
</body>
</html>
